﻿package mortal.common.preLoadPage
{
    import extend.language.*;

    public class PreloaderConfig extends Object
    {
        private static var _preResUrl:Array;
        private static var _preResName:Array;
        public static const LOGIN_GAME:int = 0;
        public static const LOAD_CREATE_ROLE:int = 1;
        public static const LOAD_MAIN_GAME:int = 2;
        public static const LOAD_CONFIG:int = 3;
        public static const LOAD_RESCOUSE:int = 4;
        public static const LOAD_ROLE:int = 5;
        public static const LOAD_VIDEO:int = 6;
        public static const LOAD_PROGRAM3D:int = 7;
        public static var config:Array = [{baseValue:0, length:5, text:PreLanguage.getString(102)}, {baseValue:5, length:10, text:PreLanguage.getString(103)}, {baseValue:15, length:50, text:PreLanguage.getString(104)}, {baseValue:65, length:10, text:PreLanguage.getString(105)}, {baseValue:75, length:10, text:PreLanguage.getString(106)}, {baseValue:85, length:10, text:PreLanguage.getString(150)}, {baseValue:95, length:5, text:PreLanguage.getString(151)}];
        public static var configCreateRole:Array = [{baseValue:0, length:5, text:PreLanguage.getString(102)}, {baseValue:5, length:10, text:PreLanguage.getString(103)}, {baseValue:15, length:50, text:PreLanguage.getString(104)}, {baseValue:65, length:10, text:PreLanguage.getString(105)}, {baseValue:75, length:10, text:PreLanguage.getString(106)}, {baseValue:85, length:10, text:PreLanguage.getString(150)}, {baseValue:95, length:10, text:PreLanguage.getString(151)}];

        public function PreloaderConfig()
        {
            return;
        }// end function

        public static function set preResUrl(param1:Array) : void
        {
            var _loc_2:String = null;
            var _loc_3:String = null;
            _preResUrl = param1;
            if (!_preResName)
            {
                _preResName = [];
            }
            else
            {
                _preResName.splice(0);
            }
            var _loc_4:int = 0;
            while (_loc_4 < _preResUrl.length)
            {
                
                _loc_2 = _preResUrl[_loc_4];
                _loc_3 = _loc_2.substr((_loc_2.lastIndexOf("/") + 1));
                _preResName.push(_loc_3);
                _loc_4++;
            }
            return;
        }// end function

        public static function get preResUrl() : Array
        {
            return _preResUrl;
        }// end function

        public static function get preResName() : Array
        {
            return _preResName;
        }// end function

    }
}
